﻿using System;
using System.Collections.Generic;
using System.Linq;
using SqlSugar;
namespace Zhao.Models.Entity
{
    /// <summary>
    /// 操作日志表（审计追踪）
    ///</summary>
    [SugarTable("Logs")]
    public class Logs
    {

        /// <summary>
        /// 备  注:
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName = "LogID", IsPrimaryKey = true, IsIdentity = true)]
        public int LogID { get; set; }

        /// <summary>
        /// 备  注:操作人ID（关联Users表）
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName = "UserID")]
        public int? UserID { get; set; }

        /// <summary>
        /// 备  注:日志等级
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName = "LogLevel")]
        public string LogLevel { get; set; } = null!;

        /// <summary>
        /// 备  注:日志内容
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName = "LogContent")]
        public string? LogContent { get; set; }

        /// <summary>
        /// 备  注:操作发生时间
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName = "CreatedAt")]
        public DateTime? CreatedAt { get; set; }


    }

}